import java.sql.SQLOutput;

void main() {
    //赋值运算符
    byte a = 10;
    System.out.println("10");
    a += 13.14;
    System.out.println(a);
    a -= 5.2;
    System.out.println(a);


    //自增自减运算符
    int count = 0;
    System.out.println(+ count);
    count++;
    count++;
    count++;
    System.out.println("当前点赞人数为："+ count);
    count--;
    System.out.println("当前点赞人数为："+count);


    //逻辑运算符
    //手机
    double price = 5000;
    System.out.println("当前手机价格是否符合用户要求：" + (price >= 4000 && price <= 6000));


    //闰年
    int year = 2050;
    boolean b = year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
    System.out.println("2050年是否为闰年：" + b);

}